package com.ftwj.demo.permission.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ftwj.demo.permission.dao.RoleDao;
import com.ftwj.demo.permission.entity.RoleBean;
import com.ftwj.demo.permission.service.RoleService;

/**
*
* <p>Title: RoleServiceImpl</p>  
* <p>Description: 角色管理业务实现类</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author WangSLi
* @date 2020年4月4日 下午5:58:20
* @version V1.0
*/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, RoleBean> implements RoleService {

	/**
	 * 	以对象为条件查询
	 */
	@Override
	public IPage<Map<String, Object>> pageMaps(IPage<RoleBean> ipage, RoleBean bean) {
		Wrapper<RoleBean> queryWrapper=new QueryWrapper<RoleBean>(bean).ne("pid", -1);
		return pageMaps(ipage, queryWrapper);
	}

}
